/**
 * checkbox选择框
 * @param name
 */
Vue.prototype.checkValues = null;
Vue.prototype.selectBox = function (name,type) {
    this.checkValues = null;
    var ids = [];
    if(type=='all'){
        $("input[name='"+name+"']").each(function(i,obj){
            if(obj.checked){
                obj.checked = false;
            }else{
                ids.push(obj.value);
                obj.checked = true;
            }
        });
    }else{
        $("input[name='"+name+"']").each(function(i,obj){
            if(obj.checked){
                ids.push(obj.value);
            }
        });
    }
    this.checkValues = ids.join();
}